package com.jdz.dao;

import com.jdz.pojo.Announcemen;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface AnnouncemenMapper {
    int deleteByPrimaryKey(Integer annno);

    int insert(Announcemen record);

    int insertSelective(Announcemen record);

    Announcemen selectByPrimaryKey(Integer annno);

    int updateByPrimaryKeySelective(Announcemen record);

    int updateByPrimaryKey(Announcemen record);

    List<Announcemen> selectListTop();

    List<Announcemen> selectListTopSort();

    List<Announcemen> selectListTopTimeSort(@Param("name") String name, @Param("startTimeDate") Date startTimeDate, @Param("stopTimeDate") Date stopTimeDate);

    List<Announcemen> selectListTopTime(@Param("name") String name, @Param("startTimeDate") Date startTimeDate, @Param("stopTimeDate") Date stopTimeDate);

    List<Announcemen> selectSearchAnnouncement(String name);

    List<Announcemen> selectSearchAnnouncementTimeSort(String name);

    List<Announcemen> selectSearchIndex(String name);
}